<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="BookCreated.Books"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit Book</title>
</head>
<jsp:useBean id="ebook" scope="request" type="BookCreated.Books"></jsp:useBean>
<jsp:useBean id="c" class="BookCreated.BookCalnumsBean" scope="request"></jsp:useBean>
<body>
	<form action="BookPostEdit" method="Post">
		<label>圖書分類</label> 
		<SELECT NAME="calid" SIZE=1><%=c.GenCalnumsSelect(ebook.getCALID())%></SELECT> 
		<input type=hidden name="bookid" value=<%=ebook.getBookID()%>>
		<p>
			<Label>圖書編號 : </Label><%=ebook.getBookID()%> <br>
		<p>
			<Label>IBSN</Label><input type="text" name="ibsn"
				value=<%="\"" + ebook.getISBN() + "\""%>> <br>
		<p>
			<Label>圖書名稱</Label><input type="text" name="bookname"
				value=<%="\"" + ebook.getBOOKNAME() + "\""%>> <br>
		<p>
			<label>存放位置</label> <SELECT NAME="location" SIZE=1
				style="width: 150px;">
				<%=ebook.GetLocationSelect(ebook.getLOCATION())%>
			</SELECT>
		<p>
			<input type="submit" value="Post"> <input type="reset"
				value="Reset">
	</form>
	<form method="post" action="FileUpLoad" enctype="multipart/form-data">
		封面： <input type="file" name="image" /> <input type="submit"
			value="上傳" />
	</form>
    <IMG border=0 align=left src= <%="images/"+ebook.getBookID()+".jpg"%> width=120 height=160>
</body>
</html>